package cn.jieruoda.eb.system.domain.entity;

import java.io.Serializable;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.IdClass;
import jakarta.persistence.Table;

import lombok.Data;

/**
 * 角色菜单关联表
 */
@Data
@Entity
@Table(name = "system_role_menu")
@IdClass(SystemRoleMenuId.class)
public class SystemRoleMenu implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 角色id
     */
    @Id
    @Column(name = "rid", nullable = false)
    private Integer rid;
    
    /**
     * 权限id
     */
    @Id
    @Column(name = "menu_id", nullable = false)
    private Integer menuId;
} 